package com.spbl.common.exception;

/**
 * Description(自定义异常)
 * author: Gao xueyong
 * Create at: 2020/6/8 11:40 下午
 */
public class BusinessException extends RuntimeException {
    private String code;

    private String commonError = "001";

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException(String message) {
        super(message);
        this.code = commonError;
    }
}
